package com.atguigu.gulimall.product.app;


import com.atguigu.common.constant.ProductConstant;
import com.atguigu.common.utils.R;
import com.atguigu.gulimall.product.entity.AttrEntity;
import com.atguigu.gulimall.product.service.*;
import com.atguigu.gulimall.product.vo.SpuSaveVo;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("product/main")
public class ZZMaintainController {


    @Autowired
    ZZMaintainService zzMaintainService;

    @RequestMapping("/deleteitem/{id}")
    public void delete(@PathVariable("id")Long id){

        zzMaintainService.deleteSpu(id);


    }

}
